<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ include file="config.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
	<script type="text/javascript" src="${ctx}/js/jquery-3.3.1.min.js"></script>
	<script type="text/javascript" src="${ctx}/js/orderInfo.js"></script>
	<link href="${ctx}/css/orderInfo.css" rel="stylesheet"/>
</head>
<body>
<div class="handler4">	
		<span>订单详情</span>
		<table class="myTable" style="text-align: left;">
			<tr>
				<td class="td1"><span>订单编号：</span></td>
				<td class="td1"><span>${order.id}</span></td>
				<td class="td1"><span>下单时间：</span></td>
				<td class="td1"><span>${order.date}</span></td>
				<td class="td1"><span>付款方式：</span></td>
				<td class="td1"><span>${order.fhfs}</span></td>
			</tr>
			<tr>
				<td class="td1"><span>发货方式：</span></td>
				<td class="td1"><span>${order.shfs}</span></td>
				<td class="td1"><span>收货人：</span></td>
				<td class="td1"><span>${user.name}</span></td>
				<td class="td1"><span>收货人地址：</span></td>
				<td class="td1"><span>${user.address}</span></td>
			</tr>
			<tr>
				<td class="td1"><span>收件人邮编：</span></td>
				<td class="td1"><span>${user.emailnum}</span></td>
				<td class="td1"><span>收货人电话：</span></td>
				<td class="td1"><span>${user.phone}</span></td>
				<td class="td1"><span>收货人Email：</span></td>
				<td class="td1"><span>${user.email}</span></td>
			</tr>
		</table>
		<br />
		<table class="myTable" >
			<tr style="color: rgb(83,169,255);">
				<td class="td1"><span>明细商品</span></td>
				<td class="td1"><span>商品图片</span></td>
				<td class="td1"><span>商品名称</span></td>
				<td class="td1"><span>商品数量</span></td>
				<td class="td1"><span>商品单价</span></td>
				<td class="td1"><span>商品小计</span></td>
			</tr>
			<c:forEach items="${carPages}" var="carPage">
				<tr>
					<td class="td1"><span>${carPage.id}</span></td>
					<td class="td1"><img alt="" src="${carPage.commodity.imgpath}" /></td>
					<td class="td1"><span>${carPage.commodity.name}</span></td>
					<td class="td1"><span>${carPage.num}</span></td>
					<td class="td1"><span>${carPage.commodity.price}</span></td>
					<td class="td1"><span>${carPage.commodity.price * carPage.num}</span> </td>
				</tr>
			</c:forEach>
			<tr>
				<td colspan="6" style="text-align: right;">商品种类数：${order.classCount}|商品总件数：${order.count}|订单总金额：${order.total}</td>
			</tr>
		</table>
		<br />
		<table class="myTable2">
			<tr>
				<td class="td1"><span>审核状态：</span></td>
				<td class="td1"><span>未审核</span></td>
				<td class="td1"><span>审核人：</span></td>
				<td class="td1" style="width: 15%"><span></span></td>
				<td class="td1"><span>审核时间：</span></td>
				<td class="td1" style="width: 25%"><span></span> </td>
			</tr>
			<tr>
				<td class="td1"><span>反馈：</span></td>
				<td colspan="5"></td>
			</tr>
			<tr>
				<td colspan="6"><a onclick="history.back(-1)" style="text-decoration: none;color: red">返回</a></td>
			</tr>
		</table>
	</div>
</body>
</html>